﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Essential_Csharp4.Chapter12
{
    public  class List1
    {
        public static int[] SimpleSort(int[] items)
        {
            int temp;
            for (int i = items.Length-1; i >0 ; i--)
            {
                for (int j = 1; j <= i; j++)
                {
                    if (items[j-1] < items[j])
                    {
                        temp = items[j];
                        items[j] = items[j - 1];
                        items[j - 1] = temp;
                    }
                }
            }
            return items;
        }
    }
}
